#ifndef SAVESOUNDSTATE_H
#define SAVESOUNDSTATE_H

#include "GameState.h"
#include "Singleton.h"
#include "EventHandler.h"
#include "EventPoller.h"
#include "Text.h"

#include <string>

class SaveSoundState : public GameState, public Uncopyable, public EventHandler
{
	SaveSoundState();
	friend class Singleton<SaveSoundState>;
public:
	void Update();
	void Draw();

	virtual void OnActivated() override;
	virtual void OnDeactivated() override;
	
	virtual void OnKeyDownEvent(const WPARAM& event) override;
	virtual void OnKeyUpEvent(const WPARAM& event) override;
private:
	Text m_text;
	Text m_blinker;
	std::string m_filePath;
	std::string m_saveFilePath;
	bool m_shiftDown;
	float m_blinkTimer;
	float m_textSpacing;
	bool m_blinking;

	D3DXVECTOR2 m_screenSize;
};

typedef Singleton<SaveSoundState> TheSaveSoundState;

#endif // SAVESOUNDSTATE_H